<template>
    <div style="width: 100%;">
      <ElInput :="$attrs" style="width: 100%;" />
      <div>
        <ElButton link type="primary" @click="onZero">全部填0</ElButton>
      </div>
    </div>
  </template>
  
  <script setup lang="ts">
  interface Props {
    data: any;
  }
  const props = withDefaults(defineProps<Props>(), {
    data: () =>({}),
  })
  
  const onZero = () => {
    console.log(props.data)
    props.data.ljxse = '0'
    props.data.rjjdl = '0'
    props.data.xdzhl = '0'
    props.data.xysj = '0'
    props.data.ljdwb = '0'
    props.data.hfl = '0'
  }
  </script>
  